# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zzz
pkgver=0.1.1
pkgrel=0
pkgdesc="Suspend or hibernate your computer"
url="https://github.com/jirutka/zzz"
arch="all"
license="MIT"
makedepends="asciidoctor"
subpackages="$pkgname-doc"
source="https://github.com/jirutka/zzz/archive/v$pkgver/zzz-$pkgver.tar.gz"
options="!check"  # no tests provided

build() {
	make CFLAGS="$CFLAGS -DZZZ_LOCK_FILE='\"/run/zzz.lock\"'"
}

package() {
	make install DESTDIR="$pkgdir" prefix=/usr
}

sha512sums="
34a7eda018072b0920405d29763610a019367a6c9aef563524d52719517a135fd09a0feef4bcf054ed460e5040b44ec80c8f72c8a6efb4a9735c2edccb862d70  zzz-0.1.1.tar.gz
"
